package com.applicationLayer.utility;

import java.util.Random;

public class PasswordGenerator {
	
	 static String alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
	
	
	public static String generatePassword(){
		System.out.println("generating...");
		String password="";
		Random rand = new Random();
        for (int i=0; i<6; i++)
        {
                password+=alphabet.charAt(rand.nextInt(alphabet.length()));
                System.out.println(i+":"+password);
        }
        System.out.println("Password:");
        System.out.println(password);
		return password;	
	}
}
